package webapp.my.com.retrofit2okhttprjavademo.API;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import webapp.my.com.retrofit2okhttprjavademo.Bean.TokenBean;

/**
 * Created by ${Andy.li} on 2017/5/3.
 */

public interface  ApiService {
    @FormUrlEncoded
    @POST("/Api/AccessToken/getToken")
    Observable<TokenBean> GetToken(@Field("appid") String appid, @Field("appsecret") String appsecret);
    @FormUrlEncoded
    @POST("/Api/AccessToken/getToken")
    Observable<TokenBean> GetToken_String(@FieldMap Map<String,String> map);
    @FormUrlEncoded
    @POST("/Api/AccessToken/getToken")
    Observable<TokenBean> GetToken_String(@Field("appid") String appid, @Field("appsecret") String appsecret);
}
